import { createRouter, createWebHistory } from "vue-router";
import HomeComponent from "@/pages/Home.vue";
import CommentComponent from "@/pages/Comment.vue";
import PostComponent from "@/pages/Post.vue";
import UserComponent from "@/pages/User.vue";
import BannerComponent from "@/pages/Banner.vue";


const routes = [{
    path: "/", component: HomeComponent, name: "home"
},{
    path: "/banner", component: BannerComponent, name: "banner"
},{
    path: "/comment", component: CommentComponent, name: "comment"
},{
    path: "/post", component: PostComponent, name: "post"
},{
    path: "/user", component: UserComponent, name: "user"
}];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;